<?php
include("system/core/sessions.class.php");
include("system/users/userAccess.class.php");
include("system/db/dbconnect.class.php");
include("system/display/navdisplay.class.php");
include("system/config/config.php");
$sess = new Session();
include("system/cart/cart.class.php");
$CART = new Cart();
$nav = new Navdisplay();
$user = new userAccess();
$user->isLoggedIn(1);

include("system/display/genericdisplay.class.php");
$genDisplay = new Genericdisplay();
$headerImage = $genDisplay->displayHeaderImage();


include("system/display/frontpage.class.php");
$frontPromo = new frontPromo();

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-16" />
		<meta name="description" content="" />
		<title>
			<?php echo SITENAME ?> Toolbox
		</title>
		<meta http-equiv="content-type" content="text/html; charset=utf-16" />
<style type="text/css" media="screen">
/*<![CDATA[*/
 @import "styles/mainstyle.css"; 
/*]]>*/
</style>
<?php
        if (isset($_SESSION['lob'])){
        echo ("<link rel=\"stylesheet\" type=\"text/css\" href=\"styles/".$lob.".css\" />");
        }
?>



<link href="styles/dropdown/dropdown.css" media="all" rel="stylesheet" type="text/css" />
<link href="styles/dropdown/dropdown.vertical.css" media="all" rel="stylesheet" type="text/css" />
<link href="styles/dropdown/themes/default/default.css" media="all" rel="stylesheet" type="text/css" />

<!--[if lt IE 7]>
<script type="text/javascript" src="js/jquery/jquery.js"></script>
<script type="text/javascript" src="js/jquery/jquery.dropdown.js"></script>
<![endif]-->

<!--[if IE]>
<link rel="stylesheet" type="text/css" href="styles/ie.css" />
<![endif]-->
</head>

	<body>
		<div id="wrapper">
			<div id="header">
				<div id="homelink">
					<a href="home.php">
						home
					</a>
					<a href="contact.php">
						contact
					</a>
					<a href="howtouse.php">
						how to use</a>
				</div>
				<div id="welcomeMessage">
					<p>
						Welcome <?php echo $_SESSION['realname']; ?> <a href="logout.php"> (logout)</a>
					</p>
				</div>
				<img src="images/<?php echo $headerImage;?>" alt="" width="1000"/>
			</div>
<?php
                    echo $CART->showMiniCart($_SESSION['username']);
                    ?>
			
				<?php
				echo $nav->buildNavigation();
				?>
			
			<div id="content">
			<h1>How to use</h1>
			<h2>1. Choose your promotion</h2>
			<p>You can select your promotion by either selecting one from the navigation on the left or clicking on the calendar and selecting your required promotion.</p>
			<h2>2. Select Your Image</h2>
			<p>You will be presented with one or more image templates. To select on simply click on the template you require.</p>
			<h2>3. Enter your quantities</h2>
			<p>Simply enter your required quantities in the form. You will also be able to enter any extra information, such as required prices, offers etc, in the provided form fields.</p>
			<p>When you have input your details you can press 'calculate' to see the current total, or press submit to continue with your order.</p>
			<h2>4. Confirm your order</h2>
			<p>You will be presented with a confirmation of your order. If it is correct then click 'Add to cart'</p>
			<h2>5. View Cart</h2>
			<p>Now you will be able to view your cart. Click on 'home' to order more promotions or click 'Process Order' to send your order to us for processing.</p>
			<p>IMPORTANT! You will need a SAP Purchase Order Number in order to continue with your order. You CAN exit the website to obtain this until you are ready to continue with  the order. Any promotions in the Cart will remain until they are either deleted or processed.</p>
			
			</div>
			<div id="footer">
				<p>
					&copy; 
<?php echo (COPYRIGHT); ?>
					2009
				</p>
			</div>
		</div>
	</body>
</html>
